Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate length of texture data during serialization instead of writing a set value & Update ImportGMS2FontData #1048

Merged

Conversation

Dobby233Liu
Copy link
Contributor

@Dobby233Liu Dobby233Liu commented Jul 13, 2022

Description

Fixes #1042

@Dobby233Liu
Copy link
Contributor Author

Dobby233Liu commented Jul 13, 2022

I should also check if the value is written for games that use PNG

@github-actions
Copy link

github-actions bot commented Jul 13, 2022

@Jacky720
Copy link
Contributor

Uh, won't this not work on pre-2022.3 games?

@Dobby233Liu
Copy link
Contributor Author

Hmm, I haven't checked

Copy link
Contributor Author

@Dobby233Liu Dobby233Liu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh lmao

UndertaleModLib/Models/UndertaleEmbeddedTexture.cs Outdated Show resolved Hide resolved
UndertaleModLib/Models/UndertaleEmbeddedTexture.cs Outdated Show resolved Hide resolved
@Dobby233Liu
Copy link
Contributor Author

Added 2022.3 checks, should be correct now

I should also check if the value is written for games that use PNG

Also we still need to check this

Copy link
Contributor

@Miepee Miepee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't have the full context right now: When is the normal serialize function called vs serialize blob?

UndertaleModLib/Models/UndertaleEmbeddedTexture.cs Outdated Show resolved Hide resolved
UndertaleModLib/Models/UndertaleEmbeddedTexture.cs Outdated Show resolved Hide resolved
UndertaleModLib/Models/UndertaleEmbeddedTexture.cs Outdated Show resolved Hide resolved
UndertaleModLib/Models/UndertaleEmbeddedTexture.cs Outdated Show resolved Hide resolved
UndertaleModLib/Models/UndertaleEmbeddedTexture.cs Outdated Show resolved Hide resolved
UndertaleModLib/Models/UndertaleEmbeddedTexture.cs Outdated Show resolved Hide resolved
@Grossley
Copy link
Collaborator

What is the status of this pull request?

Co-authored-by: VladiStep <vlad2001.21@mail.ru>
@Dobby233Liu Dobby233Liu marked this pull request as draft January 30, 2023 12:58
@Dobby233Liu Dobby233Liu marked this pull request as ready for review January 30, 2023 13:12
@Grossley Grossley merged commit b0548fe into UnderminersTeam:master Feb 23, 2023
@Jacky720 Jacky720 mentioned this pull request Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The "TextureBlockSize" value of embedded textures is not dynamically calculated
5 participants